﻿using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NHibernateHelper
{
    public class PrimaryKeyConvention : IIdConvention
    {
        public void Apply(IIdentityInstance instance)
        {
            instance.Column(instance.EntityType.Name + "ID");
            //instance.GeneratedBy.HiLo("100");
            //instance.Access.ReadOnlyPropertyThroughCamelCaseField(CamelCasePrefix.None);

        }
    }
}
